package com.dragon.manage.service;

import com.alibaba.fastjson.JSONObject;
import com.dragon.manage.bean.ManageUser;


public interface IManageAgentService {
	
	/**
	 * 获取代理列表
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public JSONObject agentList(int page)  throws Exception;
	
	/**
	 * 冻结代理
	 * @param agentId
	 * @return
	 * @throws Exception
	 */
	public JSONObject lockAgent(int agentId,int type)  throws Exception;
	
	/**
	 * 获取代理提现申请
	 * @param agentId
	 * @return
	 * @throws Exception
	 */
	public JSONObject getAgentWithdrawList(int agentId,int type,int page)  throws Exception;
	
	/**
	 * 获取代理收益明细
	 * @param agentId
	 * @return
	 * @throws Exception
	 */
	public JSONObject getAgentEarningsDetail(int agentId,int page)  throws Exception;
	
	/**
	 * 审核提现
	 * @param financeid
	 * @return
	 * @throws Exception
	 */
	public JSONObject checkWithdraw(int financeid, int type,ManageUser manageUser,String auditremarks)  throws Exception;
	
	/**
	 * 修改代理商信息
	 * @param agentId
	 * @param phone
	 * @param name
	 * @return
	 * @throws Exception
	 */
	public JSONObject updateAgentInfo(int agentId,String phone,String name)  throws Exception;
}
